package com.kaifamiao.date1110;

import java.util.logging.Logger;

public class Animal {
	
	private final Logger logger = Logger.getLogger( this.getClass().getName() );

	protected String type ;

	public Animal(String type) {
		super();
		logger.info( "Animal(String)" );
		this.type = type;
	}
	
	public void eat( String food ) {
		logger.info( "eat(String)" );
		logger.info( this.type + "动物吃" + food );
	}
	
}
